<html>
<head>
	<meta charset="UTF-8">
	<title>搜索</title>
</head>
<body>
	<?php 
	require_once("./system/dbConn.php");
	require_once("tpl/head.php");
	connect();

	if (!isset($_GET["page"])) {
		$page=1;
	}
	else{
		$page=$_GET["page"];
	}

	$sql="select * from videos";

	if ($_GET['videoname']) {
		$videoname=trim($_GET['videoname']);
		$sql=$sql."where videoname like '%{$videoname}'";
	}
	$result=mysql_query($sql) or die('查询失败！'.mysql_error());
	echo $result;




	 ?>
</body>
</html>